home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5198 < prev    next >
Encoding:
Text File  |  1996-08-05  |  709 b   |  29 lines

  1. Path: thor.tu.hac.com!collins
  2. From: collins@thor.tu.hac.com (Ron Collins)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What's your compiler's answer?
  5. Date: 8 Feb 1996 14:08:46 GMT
  6. Organization: Advanced Depot Systems
  7. Message-ID: <4fd05e$dth@hacgate2.hac.com>
  8. References: <1996Feb7.140945.28351@cs.rit.edu>
  9. NNTP-Posting-Host: thor.tu.hac.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Kenneth A Reek (kar@cs.rit.edu) wrote:
  13. [snip]
  14.  
  15. : Here's the program (hold on to your hats):
  16.  
  17. :     int main(){
  18. :         int i = 10;
  19.  
  20. :         i = i-- - --i * ( i = -3 ) * i++ + ++i;
  21. :         printf( "i = %d\n", i );
  22. :         return 0;
  23. :     }
  24.  
  25. Isn't this just a fancy form of "i = i++" that crops up like a persistant
  26. weed every once in a while?
  27.  
  28.                 -- collins --
  29.